<div>
    <div class="row">
        <div class="col-lg-12">
            <div class="ibox ">
                <div class="ibox-title">
                    <h5>
                        <span><vc:i18n name="查询条件" namespace="patrolBuildingManage"></vc:i18n></span>
                    </h5>
                    <div class="ibox-tools" style="top:10px;">
                        <button type="button" class="btn btn-link btn-sm" style="margin-right:10px;"
                                v-on:click="_moreCondition()">
                            {{patrolBuildingManageInfo.moreCondition == true?'隐藏':'更多'}}
                        </button>
                    </div>
                </div>
                <div class="ibox-content">
                    <div class="row">
                        <div class="col-sm-3">
                            <div class="form-group">
                                <input type="text" :placeholder="vc.i18n('请输入巡楼编号','patrolBuildingManage')"
                                       v-model.trim="patrolBuildingManageInfo.conditions.pbId"
                                       class=" form-control">
                            </div>
                        </div>
                        <div class="col-sm-4">
                            <div class="form-group">
                                <input type="text" :placeholder="vc.i18n('请输入员工姓名','patrolBuildingManage')"
                                       v-model.trim="patrolBuildingManageInfo.conditions.staffName"
                                       class=" form-control">
                            </div>
                        </div>
                        <div class="col-sm-3">
                            <div class="form-group">
                                <input type="text" :placeholder="vc.i18n('请输入楼栋编号','patrolBuildingManage')"
                                       v-model="patrolBuildingManageInfo.conditions.floorNum" class=" form-control">
                            </div>
                        </div>
                        <div class="col-sm-2">
                            <button type="button" class="btn btn-primary btn-sm"
                                    v-on:click="_queryPatrolBuildingMethod()">
                                <i class="fa fa-search"></i>
                                <span><vc:i18n name="查询" namespace="patrolBuildingManage"></vc:i18n></span>
                            </button>
                            <button type="button" class="btn btn-primary btn-sm"
                                    v-on:click="_resetPatrolBuildingMethod()">
                                <i class="fa fa-repeat"></i>
                                <span><vc:i18n name="重置" namespace="patrolBuildingManage"></vc:i18n></span>
                            </button>
                        </div>
                    </div>
                    <div class="row" v-show="patrolBuildingManageInfo.moreCondition == true">
                        <div class="col-sm-3">
                            <div class="form-group">
                                <input type="text" :placeholder="vc.i18n('请输入登记开始时间','contractManage')"
                                       v-model="patrolBuildingManageInfo.conditions.startTime"
                                       class=" form-control startTime">
                            </div>
                        </div>
                        <div class="col-sm-4">
                            <div class="form-group">
                                <input type="text" :placeholder="vc.i18n('请输入登记结束时间','contractManage')"
                                       v-model="patrolBuildingManageInfo.conditions.endTime"
                                       class=" form-control endTime">
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="row">
        <div class="col-lg-12">
            <div class="ibox">
                <div class="ibox-title">
                    <h5>
                        <span><vc:i18n name="巡楼信息" namespace="patrolBuildingManage"></vc:i18n></span>
                    </h5>
                    <div class="ibox-tools" style="top:10px;">
                        <button type="button" class="btn btn-primary btn-sm" v-on:click="_openPatrolBuildingModal()">
                            <i class="fa fa-plus"></i>添加
                        </button>
                        <button type="button" class="btn btn-primary btn-sm" v-on:click="_exportExcel()">
                            <i class="fa fa-plus"></i>
                            <span><vc:i18n name="导出" namespace="patrolBuildingManage"></vc:i18n></span>
                        </button>
                    </div>
                </div>
                <div class="ibox-content">
                    <table class="footable table table-stripped toggle-arrow-tiny" data-page-size="15">
                        <thead>
                        <tr>
                            <th class="text-center">
                                <span><vc:i18n name="巡楼编号" namespace="patrolBuildingManage"></vc:i18n></span>
                            </th>
                            <th class="text-center">
                                <span><vc:i18n name="标题" namespace="patrolBuildingManage"></vc:i18n></span>
                            </th>
                            <th class="text-center">
                                <span><vc:i18n name="员工ID" namespace="patrolBuildingManage"></vc:i18n></span>
                            </th>
                            <th class="text-center">
                                <span><vc:i18n name="员工姓名" namespace="patrolBuildingManage"></vc:i18n></span>
                            </th>
                            <th class="text-center">
                                <span><vc:i18n name="楼栋编号" namespace="patrolBuildingManage"></vc:i18n></span>
                            </th>
                            <th class="text-center">
                                <span><vc:i18n name="有无异常" namespace="patrolBuildingManage"></vc:i18n></span>
                            </th>
                            <th class="text-center">
                                <span><vc:i18n name="巡楼内容" namespace="patrolBuildingManage"></vc:i18n></span>
                            </th>
                            <th class="text-center">
                                <span><vc:i18n name="登记时间" namespace="patrolBuildingManage"></vc:i18n></span>
                            </th>
                            <th class="text-center">
                                <span><vc:i18n name="巡楼图片" namespace="patrolBuildingManage"></vc:i18n></span>
                            </th>
                            <th class="text-center">
                                <span><vc:i18n name="操作" namespace="patrolBuildingManage"></vc:i18n></span>
                            </th>
                        </tr>
                        </thead>
                        <tbody>
                        <tr v-for="patrolBuilding in patrolBuildingManageInfo.patrolBuildings">
                            <td class="text-center">{{patrolBuilding.pbId}}</td>
                            <td class="text-center">{{patrolBuilding.title}}</td>
                            <td class="text-center">{{patrolBuilding.staffId}}</td>
                            <td class="text-center">{{patrolBuilding.staffName}}</td>
                            <td class="text-center"
                                v-if="patrolBuilding.floorId != null && patrolBuilding.floorId != '' && patrolBuilding.floorId != '-1'">
                                {{patrolBuilding.floorNum}}号楼
                            </td>
                            <td class="text-center" v-else>
                                --
                            </td>
                            <td class="text-center">{{patrolBuilding.state == '0' ? '无' : '有'}}</td>
                            <td class="text-center">{{patrolBuilding.remark}}</td>
                            <td class="text-center">{{patrolBuilding.createTime}}</td>
                            <td class="text-center">
                                <span v-for="_photo in patrolBuilding.imgUrls">
                                    <img style="width: 60px; height: 60px;" v-bind:src="_photo"
                                         v-on:click="showImg(_photo)"/>
                                </span>
                            </td>
                            <td class="text-center">
                                <div class="btn-group">
                                    <button class="btn-white btn btn-xs"
                                            v-on:click="_openEditPatrolBuildingModel(patrolBuilding)">
                                        <span><vc:i18n name="修改" namespace="patrolBuildingManage"></vc:i18n></span>
                                    </button>
                                </div>
                                <div class="btn-group">
                                    <button class="btn-white btn btn-xs"
                                            v-on:click="_openDeletePatrolBuildingModel(patrolBuilding)">
                                        <span><vc:i18n name="删除" namespace="patrolBuildingManage"></vc:i18n></span>
                                    </button>
                                </div>
                            </td>
                        </tr>
                        </tbody>
                        <tfoot>
                        <tr>
                            <td colspan="10">
                                <ul class="pagination float-right"></ul>
                            </td>
                        </tr>
                        </tfoot>
                    </table>
                    <!-- 分页 -->
                    <vc:create path="frame/pagination"></vc:create>
                </div>
            </div>
        </div>
    </div>
    <vc:create path="common/viewImage"></vc:create>
    <vc:create path="property/deletePatrolBuilding"></vc:create>
</div>
